<template>
  <div>
    <el-table
      :data="rentFromList"
      stripe="stripe"
      height="250"
      border
      style="width: 100%"
    >
      <el-table-column prop="descRent" label="出租/租房" width="100">
      </el-table-column>
      <el-table-column prop="descEntireRent" label="整租/合租" width="100">
      </el-table-column>
      <el-table-column prop="rentType" label="租房类型"> </el-table-column>
      <el-table-column prop="rentLocation" label="租房位置"> </el-table-column>
      <el-table-column prop="rentFloor" label="所在楼层"> </el-table-column>
      <el-table-column prop="rentIntroduction" label="租房介绍">
      </el-table-column>
      <el-table-column prop="rentMoney" label="房租"> </el-table-column>
      <el-table-column prop="contact" label="联系方式"> </el-table-column>
      <el-table-column prop="other" label="其他说明"> </el-table-column>
      <el-table-column prop="dateTime" label="发布时间"> </el-table-column>
    </el-table>
    
  </div>
</template>

<script>
export default {
  name: "RentFrom",
  data() {
    return {
      rentFromList: [],
    };
  },
  mounted() {
    this.initRentFromList();
  },
  methods: {
    initRentFromList() {
      this.getRequest("/rent/getRentByLease").then((resp) => {
        if (resp) {
          this.rentFromList = resp;
          console.log(resp);
        }
      });
    },
  },
};
</script>

<style>
</style>